<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/11/21
 * Time: 14:55
 */
defined('YII_RUN') or exit('Access Denied');
$urlManager = \Yii::$app->urlManager;
$this->title = '超级分享家设置';
$this->params['active_nav_group'] = 1;
?>
<div class="panel mb-3">
    <div class="panel-header"><?= $this->title ?></div>
    <div class="panel-body">
        <form class="auto-form" id="auto-form" method="post" >
            <div class="form-group row">
                <div class="form-group-label col-sm-2 text-right">
                    <label class="col-form-label">是否开启</label>
                </div>
                <div class="col-sm-6">
                    <label class="radio-label">
                        <input id="radio2" <?= $data['type'] == 0 ? 'checked' : null ?>
                               value="0"
                               name="type" type="radio" class="custom-control-input">
                        <span class="label-icon"></span>
                        <span class="label-text">关闭</span>
                    </label>
                    <label class="radio-label">
                        <input id="radio1" <?= $data['type'] == 1 ? 'checked' : null ?>
                               value="1"
                               name="type" type="radio" class="custom-control-input">
                        <span class="label-icon"></span>
                        <span class="label-text">开启</span>
                    </label>
                </div>
            </div>
            <div class="form-group row">
                <div class="form-group-label col-sm-2 text-right">
                    <label class="col-form-label required">单笔购买金额</label>
                </div>
                <div class="col-sm-6">
                    <input class="form-control cat-name" name="money" id="money" value="<?=$data['money']?>">
                </div>
            </div>
            <div class="form-group row">
                <div class="form-group-label col-sm-2 text-right">
                </div>
                <div class="col-sm-6">
                    <a class="btn btn-primary auto-form-btn" href="javascript:">保存</a>
                </div>
            </div>
        </form>
    </div>
</div>
